import request from "@/common/http/axios"


// /examResources/admin/add
export const getFileList = (data) => {

    return request({
        url: '/examResources/admin/list',
        method: 'post',
        data
    })
}

export const uploadFile = (data) => {
    return request({
        url: '/examResources/admin/add',
        method: 'post',
        data
    })
}

// /examResources/admin/delete
export const deleteFile = (id) => {
    return request({
        url: '/examResources/admin/delete/' + id,
        method: 'get',
    })
}


// /orders/list
export const getOrderList = (data) => { 
    return request({
        url: '/orders/list',
        method: 'post',
        data
    })
}


